import request from '@/utils/request'

// 查询数据监测列表
export function listMonitor(query) {
  return request({
    url: '/cscec/monitor/list',
    method: 'get',
    params: query
  })
}

// 查询数据监测详细
export function getMonitor(dmId) {
  return request({
    url: '/cscec/monitor/' + dmId,
    method: 'get'
  })
}

// 新增数据监测
export function addMonitor(data) {
  return request({
    url: '/cscec/monitor',
    method: 'post',
    data: data
  })
}

// 修改数据监测
export function updateMonitor(data) {
  return request({
    url: '/cscec/monitor',
    method: 'put',
    data: data
  })
}

// 删除数据监测
export function delMonitor(dmId) {
  return request({
    url: '/cscec/monitor/' + dmId,
    method: 'delete'
  })
}
